package Level01_six;

import static java.lang.System.out;

public class Test {
    public static void main(String[] args) {
        new Inter() {
            @Override
            public void inter() {
                out.println("通过匿名内部内实现接口");
            }
        }.inter();
        //通过lambda表达式实现接口
        Inter inter = () -> out.println("通过lambda表达式实现接口");
        inter.inter();
        new Achieve().new Inner().inter();
    }
}
